Ejemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     mData         = new Settings.Data();
     mData.conText = "Welcome to MelonNote!";
     Settings.USettings.data.Add(mData);
 }
Ejemplo n.º 2
0
 private void AddBtn_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (Settings.USettings.data.Count == 1)
     {
         i = 1;
     }
     Settings.Data tData = new Settings.Data()
     {
         Width  = Width,
         Height = Height,
         left   = Left + 50 * i,
         top    = Top + 50 * i,
         code   = mData.code,
         theme  = mData.theme
     };
     new MainWindow(tData).Show();
     Settings.USettings.data.Add(tData);
     i++;
 }
Ejemplo n.º 3
0
        public MainWindow(Settings.Data dt)
        {
            InitializeComponent();
            mData      = dt;
            TData.Text = dt.conText;
            TData.SyntaxHighlighting = HighlightingManager.Instance.GetDefinitionByExtension(dt.code);
            Width  = dt.Width;
            Height = dt.Height;
            Left   = dt.left;
            Top    = dt.top;
            List <Color> c = new List <Color>();

            c.Add(Color.FromRgb(255, 185, 1));
            c.Add(Color.FromRgb(17, 137, 5));
            c.Add(Color.FromRgb(217, 1, 169));
            c.Add(Color.FromRgb(93, 36, 155));
            c.Add(Color.FromRgb(1, 121, 215));
            c.Add(Color.FromRgb(119, 119, 119));
            Resources["ThemeColor"] = c[mData.theme];
            c.Clear();
        }