Beispiel #1
0
        private void Button_cancel_Click(object sender, EventArgs e)
        {
            SheetDesinger sheetDesinger = (SheetDesinger)this.Owner;

            sheetDesinger.dtCellStyle = DTCellStyle;
            this.DialogResult         = DialogResult.OK;
            Close();
        }
Beispiel #2
0
        private void OpenSheetDesigner()
        {
            TreeNode Node    = FpSheetView.SelectedNode;
            Boolean  IsSheet = Convert.ToBoolean(Node.Tag);

            if (IsSheet)
            {
                SheetDesinger SheetDesigner = new SheetDesinger(new Guid(Node.Name));
                Form          Owner         = Cache.CustomCache[SystemString.主窗口] as Form;
                SheetDesigner.Location = Owner.PointToScreen(Owner.ClientRectangle.Location);
                SheetDesigner.Size     = Owner.ClientRectangle.Size;
                SheetDesigner.ShowDialog(Owner);
            }
        }
Beispiel #3
0
        private void ButtonSave_Click(object sender, EventArgs e)
        {
            CellStyle = (JZCellStyle)propertyGrid1.SelectedObject;
            bool bSuccess = BizComponents.ModuleHelperClient.SaveCellStyle(SheetID, CellName, CellStyle);

            if (bSuccess)
            {
                SheetDesinger sheetDesinger = (SheetDesinger)this.Owner;
                sheetDesinger.CurrentCellStyle = CellStyle;
                this.DialogResult = DialogResult.OK;
            }
            else
            {
                this.DialogResult = DialogResult.Cancel;
            }
            this.Close();
        }
Beispiel #4
0
 public SheetDataItemDialog(SheetDesinger Designer, List <Cell> _cells)
 {
     InitializeComponent();
     sheetDesigner = Designer;
     cells         = (from n in _cells orderby n.ToString() select n).ToList();
 }