예제 #1
0
        private void bt_editProcess_Click(object sender, EventArgs e)
        {
            LogDialog Dialog = new LogDialog(logID);
            Form      Owner  = Yqun.Common.ContextCache.Cache.CustomCache[SystemString.主窗口] as Form;

            Dialog.Location = Owner.PointToScreen(Owner.ClientRectangle.Location);
            Dialog.Size     = Owner.ClientRectangle.Size;
            Dialog.ReadOnly = true;
            Dialog.ShowDialog(Owner);
        }
예제 #2
0
        private void FpSpread_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            Row Row = FpSpread.ActiveSheet.ActiveRow;

            if (Row != null && Row.Tag is String && Row.Tag.ToString() != "")
            {
                LogDialog Dialog = new LogDialog(Int64.Parse(Row.Tag.ToString()));
                Form      Owner  = Cache.CustomCache[SystemString.主窗口] as Form;
                Dialog.Location = Owner.PointToScreen(Owner.ClientRectangle.Location);
                Dialog.Size     = Owner.ClientRectangle.Size;
                Dialog.ReadOnly = true;
                Dialog.ShowDialog(Owner);
            }
        }