Exemplo n.º 1
0
        private void buttonApply_Click(object sender, EventArgs e)
        {
            FormMain.data Data = new FormMain.data();
            Data.imageData = zoomImage;
            Data.title = textBoxBranchName.Text;
            Data.des = textBoxDes.Text;
            Data.filePath = labelImageName.Text;
            Data.date = textBoxDate.Text;
            Data.oriImage = oriImage;

            FormMain formMain = (FormMain)this.Owner;
            switch (type)
            {
                case (int)fileClass.type.NEW:
                    {
                        formMain.addList(Data);
                        break;
                    }
                case (int)fileClass.type.EDIT:
                    {
                        formMain.editList(Data, index);
                        break;
                    }
                case (int)fileClass.type.INSERT:
                    {
                        formMain.insertList(Data, index);
                        break;
                    }
            }

              this.Close();
        }
Exemplo n.º 2
0
        private void buttonApply_Click(object sender, EventArgs e)
        {
            FormMain.data Data = new FormMain.data();
            Data.imageData = zoomImage;
            Data.title     = textBoxBranchName.Text;
            Data.des       = textBoxDes.Text;
            Data.filePath  = labelImageName.Text;
            Data.date      = textBoxDate.Text;
            Data.oriImage  = oriImage;

            FormMain formMain = (FormMain)this.Owner;

            switch (type)
            {
            case (int)fileClass.type.NEW:
            {
                formMain.addList(Data);
                break;
            }

            case (int)fileClass.type.EDIT:
            {
                formMain.editList(Data, index);
                break;
            }

            case (int)fileClass.type.INSERT:
            {
                formMain.insertList(Data, index);
                break;
            }
            }

            this.Close();
        }