public ListControl_ViewUsers(Form_Home homeForm)
 {
     this.homeForm = homeForm;
     tooltip       = new ToolTip();
     staffManager  = new StaffManagerImpl();
     InitializeComponent();
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (Form_Home fh = new Form_Home())
     {
         fh.ShowDialog();
         Form1 f1 = new Form1();
         f1.Dispose();
     }
 }
        public Notification_template(int count, Entity_Notification notifyObj, Form_Home homeForm)
        {
            this.homeForm  = homeForm;
            this.notifyObj = notifyObj;
            setNotificationObj();

            InitializeComponent();

            setTemplate();
            setNotifyIconForRow(count);
        }
Ejemplo n.º 4
0
        public static void exportToExcel(ListView myList, Form_Home homeform)
        {
            if (!homeform.notifyIcon.Visible)
            {
                homeForm = homeform;
                BackgroundWorker worker = new BackgroundWorker();
                worker.DoWork             += startBackgrounThread;
                worker.RunWorkerCompleted += backgroundThreadCompleted;

                MyListView myListObj = new MyListView(myList);
                worker.RunWorkerAsync(myListObj);
            }
            else
            {
                Dialog_MyMessageBox.Show(Constant.REQUEST_UNDER_PROCESS, 1, UiColors.MESSAGE_ERROR);
            }
        }