Exemple #1
0
        public FileManager(MainForm f, TabSidebar TS, System.Windows.Forms.RichTextBox rtx)
        {
            this.mainform = f;
            this.rtx = rtx;

            this.tabSidebar = TS;
            tabSidebar.Icon_Click_Thrower += IconClicked;

            this.Tabs = new List<File>();
            Focus = 0;
            NewFile();            
        }
        public NotificationBar(MainForm f, string type, string notification)
        {
            InitializeComponent();
            this.mainform = f;
            f.RTXPanel.Controls.Add(this);
            Location = this.mainform.PTnotification;
            this.BringToFront();

            if(type == "Good")
            {
                this.Icon.Image = Properties.Resources.Confirmation;
                this.BackColor = MainForm.MainLimeGreen;
            }else if(type == "Bad"){
            }

            sendNotification(notification);
        }
Exemple #3
0
 public void AssignRTX(RichTextBox rtx, MainForm f)
 {
     this.rtx = rtx;
     this.mainform = f;
 }